<template>
  <div class="module main">
    <h1 v-if="uid">
      user id {{ uid }}
    </h1>
    <router-view />
  </div>
</template>

<script lang="ts">
import { Options, Vue } from 'vue-class-component';
import { Inject } from 'cdjs-swiftjs-plug';
import UserServices from '../services/user';

@Options({})
export default class InfoModuleView extends Vue {
  @Inject()
  private user!: UserServices;

  private get uid () {
    return 2;
  }

  mounted () {
    // this.user.add();
  }
}
</script>
